<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>date类型</title>
</head>
<body>
    <form action="" method="post">
        <fieldset>
            <legend>选择日期：</legend>
            <label for="date">Date:</label>
            <input type="date" id="date" name="date" required/>
        </fieldset>
    </form>
</body>
</html>